/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 考试记录相关的一些类型
 */
import type { PageRes } from './commom'

export interface ExamHistoryReq {
  page?: number
  pageSize?: number
  userId?:string
  paperId?:string
  type?:string
}

// ExamHistory返回实体
export interface ExamHistoryRes {
  id: string
  userId:string
  User:any
  Paper:any
  answers:string
  paperId:string
}

// 分页ExamHistory返回实体
export type ExamHistoryPageRes = PageRes<ExamHistoryRes>

// 考试记录添加请求实体类型
export interface ExamHistoryCreateReq {
  userId:string
  answers:string
  paperId:string
  type?:string
}

// 考试记录修改请求实体
export interface ExamHistoryUpdateReq {
  examHistoryId:string
  userId:string
  answers:string
  paperId:string
}

export type ExamHistoryRowData = ExamHistoryRes
